package com.atguigu.gulimail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author xiaozheng
 * @email 924155240@qq.com
 * @date 2021-01-29 17:26:54
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 根据品牌ID查询数据
	 * @param brandId
	 * @return
	 */
    List<CategoryBrandRelationEntity> findByBrandId(Long brandId);

	void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

	void updateBrand(Long brandId, String name);

	void updateCategory(Long categoryId, String categoryName);
}

